//
// Created by changlei on 2021/11/4.
//

import UIKit
@_exported import SnapKit


class BaseController: UIViewController {
    open var navigationBar: UINavigationBar? {
        get {
            navigationController?.navigationBar
        }
    }

    open var screenBounds: CGRect {
        get {
            UIScreen.main.bounds
        }
    }

    open var appearance: UINavigationBar {
        get {
            UINavigationBar.appearance()
        }
    }

    open var standardAppearance: UINavigationBarAppearance {
        get {
            appearance.standardAppearance.copy()
        }
    }

    open var scrollEdgeAppearance: UINavigationBarAppearance? {
        get {
            appearance.scrollEdgeAppearance?.copy()
        }
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .secondarySystemBackground
    }
}
